package com.example.examsystem2.mapper.sys;

import com.example.examsystem2.entity.sys.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface SysUserMapper {
    Map<Object,Object> find_user_by_u_sno(String u_sno);

    List<Map<String,Object>> get_all_user();

    int del_user_by_u_id(int u_id);

    int update_user_state_by_u_id(Map<String, Integer> map);

    int update_user_by_u_id(SysUser sysUser);

    List<SysUser> get_all_user1();

    int add_user(SysUser sysUser);

    int update_user_role_by_u_id(SysUser sysUser);

    int num5();

    int update_user_psw_by_u_id(SysUser sysUser);

    int get_user_by_u_sno(String u_sno);
}
